home *** CD-ROM | disk | FTP | other *** search
- Path: usenet.cis.ufl.edu!caen!cjlin
- From: cjlin@news-server.engin.umich.edu (Chih-Jen Lin)
- Newsgroups: comp.lang.c
- Subject: a link problem
- Date: 2 Feb 1996 02:13:59 GMT
- Organization: University of Michigan Engineering, Ann Arbor
- Message-ID: <4ers17$4c3@srvr1.engin.umich.edu>
- NNTP-Posting-Host: @magnumpi.engin.umich.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi,
-
- It seems that the order of .o files in makefile affect
- link result. For example, if function A in a.c call function
- B in b.c, then I need to use
- %cc ... a.o b.o
- and can't use
- %cc ... b.o a.o
-
- This looke very inconvinent. Is there any way to solve
- this problem ? Thanks for your help.
-
- Chih-Jen Lin
-